package com.wisdom.benefit.jufa.utils;

import android.view.animation.Animation;
import android.view.animation.RotateAnimation;

public class AnimationUtil {
    public static RotateAnimation UpAnim() {
        RotateAnimation animation = new RotateAnimation(0, -180f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
        animation.setFillAfter(true);
        animation.setDuration(500);
        return animation;
    }


    public static RotateAnimation downAnim() {
        RotateAnimation animation = new RotateAnimation(-180f, -360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
        animation.setFillAfter(true);
        animation.setDuration(500);
        return animation;
    }

}
